package Game;

import java.awt.Rectangle;

public class Caminho
{
	public int gridRows, gridColumns;
	public int gridWidth, gridHeight;
	
	public Rectangle[][] gridRects;
	
	public Caminho(int gridRows, int gridColumns, int gridWidth, int gridHeight) 
	{
		
		//System.out.println("GRID :" + gridWidth + "x" + gridHeight );
		
		this.gridRows = gridRows;
		this.gridColumns = gridColumns;
		this.gridWidth = gridWidth;
		this.gridHeight = gridHeight;
		
		gridRects = new Rectangle[gridRows][gridColumns];
		
		for(int i = 0; i < gridRows; i++) //Linhas 
		{
			for(int j = 0; j < gridColumns; j++) //Colunas
			{
				gridRects[i][j] = new Rectangle((int)((gridWidth / gridColumns) * j), (int)((gridHeight / gridRows) * i), (int)(gridWidth / gridColumns), (int)(gridHeight / gridRows));
			}
		}
	}
}
